﻿using System;
using SapaFinance.Domain.Model;
using Xunit;

namespace SapaFinance.Tests
{
    public class PaymentTest
    {
        private static Payment Create()
        {
            var paymentComplete = new Payment(UserTest.Create())
            {
                Unique = 44,
                Number = 453453453,
                PaymentDate = DateTime.Now
            };
            paymentComplete.SetPayment(PaymentTypeTest.Create());
            paymentComplete.SetPayee(CorporationTest.Create());
            paymentComplete.SetPayer(CorporationTest.Create());
            return paymentComplete;
        }
        [Fact]
        public void CheckPaymantCompleteCreate()
        {
            var complete = Create();
            Assert.NotNull(complete);
        }
    }
}